add_circt_dialect_library(CIRCTRTGDialect
  RTGAttributes.cpp
  RTGAttrInterfaces.cpp
  RTGDialect.cpp
  RTGISAAssemblyAttrInterfaces.cpp
  RTGISAAssemblyTypeInterfaces.cpp
  RTGISAAssemblyOpInterfaces.cpp
  RTGOpInterfaces.cpp
  RTGOps.cpp
  RTGTypeInterfaces.cpp
  RTGTypes.cpp

  ADDITIONAL_HEADER_DIRS
  ${CIRCT_MAIN_INCLUDE_DIR}/circt/Dialect/RTG/IR

  DEPENDS
  CIRCTRTGAttributeIncGen
  CIRCTRTGAttrInterfacesIncGen
  CIRCTRTGEnumsIncGen
  CIRCTRTGISAAssemblyAttrInterfacesIncGen
  CIRCTRTGISAAssemblyOpInterfacesIncGen
  CIRCTRTGISAAssemblyTypeInterfacesIncGen
  CIRCTRTGOpInterfacesIncGen
  CIRCTRTGTypeInterfacesIncGen
  CIRCTSupport
  MLIRRTGIncGen
    
  LINK_LIBS PUBLIC
  MLIRIR
  MLIRBytecodeOpInterface
  MLIRInferTypeOpInterface
  MLIRSideEffectInterfaces
)
